<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<style>
		#overlay{
			background: rgba(0,0, 0, 0.6);
			width: 100%;
			margin: auto;
			position: fixed;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
		}
		#center{
			background: #fff;
			border-radius: 5px;
			padding: 15px 30px 15px 15px;
			width: 290px;
			height: 160px;
			position: fixed;
			margin: auto;
			left: 0;
			right: 0;
			top: 0;
			bottom: 0;
		}
	</style>
	<body>
		<div id="app">
			<button @click="isShow=true">show</button>
			<div id="overlay" v-show="isShow" @click.self="isShow=false">
				<div id="center">
					<p>用户名：<input type="text"/></p>
					<p>密码：<input type="password"/></p>
					<p><button>登录</button></p>
				</div>
			</div>
		</div>
		<script>
			var vm=new Vue({
				el:'#app',
				data:{
					isShow:false
				},
				methods:{
					
				}
			})
		</script>
		
	</body>
</html>